<template>
  <div>
    <h3>自定义子组件MyCom1</h3>
    <p>{{ num }} </p>
    <button @click="$emit('input', num + 1)">点击+1</button>
  </div>
</template>

<script>
export default {
  props: ['num'],
  methods: {

  }
}
</script>

<style>

</style>
